module.exports = {
  // 基本路径
  publicPath: './',
  // 输出文件目录
  outputDir: 'dist',
  assetsDir: 'assets',
  devServer: {
    open: false, // 是否自动启动浏览器
    host: 'localhost',
    port: 8080,
    https: false,
    hotOnly: false,
    proxy: {
      '/api': {
        target: 'http://ymapi.ymiots.com',
        // target:'http://wxdemo.ymiots.com',
        // target: 'http://192.168.9.208:2030',
        wx: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        'view': '@/view',
        'components': '@/components',
        'network': '@/network',
        'common': '@/common',
        'assets': '@/assets',
        'api': '@/api',
        'static': '@/static',
      }
    }
  },

}